<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\GkyProfile */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="gky-profile-form">
<div class="panel panel-default">
        <div class="panel-heading text-center" style="background: #003eff;color:white">gky-profile</div>
        <div class="panel-body">
    <?php $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal form-group'],
                'fieldConfig' => [
                    'template' => "{label}<div class=\"col-lg-10\">{input}</div>",
                    'labelOptions' => ['class' => 'col-lg-2 control-label'],
                ]
    ]); ?>

    <div class="col-lg-6">
       <?= $form->field($model, 'user_id')->textInput() ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'public_email')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'gravatar_email')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'gravatar_id')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'location')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'website')->textInput(['maxlength' => true]) ?>
    </div>
         <div class="col-lg-6">
       <?= $form->field($model, 'bio')->textarea(['rows' => 6]) ?>
    </div>
         <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success col-lg-offset-5 col-xs-offset-5 col-sm-offset-5 col-md-offset-5' : 'btn btn-primary col-lg-offset-5 col-xs-offset-5 col-sm-offset-5 col-md-offset-5']) ?>
        <?= Html::a('Return', ['index'], ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>
      </div>
    </div>

</div>
